package com.xunai.saas.example.controller;

import com.xunai.saas.example.model.param.HandAnalysisParam;
import com.xunai.saas.example.service.HandService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 手诊示例接口
 *
 * @author Admin
 */
@RequestMapping("/handApi")
@RestController
public class HandApiExample {

    @Resource
    HandService handService;

    /***
     * 手诊
     * @param handAnalysisParam
     * @return
     */
    @PostMapping("/analysis")
    public String analysis(@RequestBody HandAnalysisParam handAnalysisParam) {
        return handService.analysis(handAnalysisParam);
    }


}
